<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="../../../../src/css/common/reset.css">
    <link rel="stylesheet" href="com-alert.css">
    <script src="../../lib/jquery.js"></script>
    <script src="com-alert.js"></script>
</head>
<body>

<div class="demo clearfix">

    <button id="button">弹窗</button>

</div>
<script>

    $('#button').click(function(){
        $.alert({
            message:'you are shit hehe lvooee',
            detail:'oon shit pop push',
            singleButton:false,
            okHandler:function(){
                alert(123)
            },
            okText:'Ok',
            cancelHandler:function(){
                alert('cancel')
            },
            cancelText:'no'
        })
    })


</script>
</body>
</html>